<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Promise关键问题 - 改变状态与指定回调的顺序问题</title>
</head>
<body>
	<script>
		let p = new Promise((resolve,reject)=>{
			//resolve('OK')
			setTimeout(()=>{
				resolve('OK')
			},1000)
		})

		p.then(value =>{
			console.log(value);
		},reason=>{
			
		})
	</script>
</body>
</html>